@import '../theme-chalk/mixins/utlis';

.aside-tree {
  padding-top: 25px;

  .drop-btn {
    display: none;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 5px;
    top: 10px;
    cursor: grab;

    i {
      cursor: grab;
      font-size: $--font-size-large;
      color: $--color-text-regular;
    }
  }

  .custom-tree-node {
    @include utils-ellipsis;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;

    .node-label-wrap {
      display: flex;
      align-items: center;
      color: $--color-text-primary;
      width: 100%;
      height: 100%;
    }

    .node-label {
      line-height: 30px;
      display: block;
      max-width: calc( 100% - 36px);
      @include utils-ellipsis;
    }

    // .category-name {
    //     width: 86px;
    //     height: 30px;
    //     border: none;
    //     border: 1px solid rgba(229, 229, 229, 1);
    // }
  }

  .tree-handle {
    display: none;
    position: absolute;
    right: -88px;
    top: 0;
    z-index: 1000;
    background: $--color-white;
    width: 120px;
    background: $--color-white;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.07);
    padding: 5px 0;
    border-radius: 2px;

    button {
      width: 100%;
      display: block;
      padding: 8px 14px;
      text-align: left;
      font-size: 12px;

      &:hover {
        background: $--background-color-hover;
      }
    }
  }

  .set-tree-type {
    cursor: pointer;
    position: absolute;
    right: 0;
    z-index: 10;
    border-radius: 2px;
    text-align: center;
    .iconsangedian {
      font-size: 14px !important;
      margin-right: 8px;
      &:hover {
        background: $--color-white;
      }
    }
  }

  .category-name-pic {
    width: 282px;
    height: 140px;
    background: $--color-white;
    display: block;
    position: absolute;
    z-index: 2000;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.09);
  }

  .upload {
    height: 216px;
  }

  .categoryPic {
    width: 16px;
    height: 16px;
    padding-right: 5px;
  }

  .label-weight {
    font-weight: 500;
  }

  .el-tree .el-tree__drop-indicator {
    background: $--color-primary !important;
    height: 2px !important;
    left: 0 !important;
  }

  .el-tree .el-tree-node__expand-icon.expanded {
    color: #a1a8b1;
  }

  .el-tree .el-tree-node__content {
    height: 40px;
    position: relative !important;
    background: $--color-white;
    cursor: auto;
  }

  .el-tree-node .el-tree-node__content:hover {
    background: $--background-color-selected;
  }

  .el-tree-node .el-tree-node__content:hover .drop-btn {
    display: block;
  }

  .el-tree .el-tree-node__label {
    font-size: 12px;
  }

  .el-tree > :first-child > .el-tree-node__content:hover .set-tree-type {
    background: transparent;
  }

  .el-tree--highlight-current
    .el-tree-node.is-current
    > .el-tree-node__content {
    background: $--background-color-selected;
    border-left: 3px solid $--color-primary;
  }

  .el-tree > :first-child > .el-tree-node__content .set-tree-type,
  .el-tree--highlight-current
    .el-tree-node.is-current
    > .el-tree-node__content
    .set-tree-type {
    background: $--background-color-selected;
  }

  .el-scrollbar {
    height: calc(100vh - 200px);
  }
}

.translate-id--area {
  padding-top: 0;
  
  .el-scrollbar {
    height: auto;
  }
}

// 侧边分类title样式
.pic-type-title {
  padding: 0 10px;
  box-sizing: border-box;

  span {
    display: inline-block;
    height: 44px;
    line-height: 44px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    border-bottom: $--border-base;
  }
}

#content-manage {
  margin-top: 24px;

  .tree-aside {
    width: 220px !important;
    background: $--color-white;
    margin: 0 24px 0 32px;
    border: $--border-base;
    border-radius: 2px;
  }

  .el-dialog__body {
    padding-top: 0;
    padding-bottom: 38px;
    font-size: 12px;
  }
}
